package com.yunfei.bo;


import com.yunfei.entity.TCustBuyinEntity;

/**
 *@tablename T_CUST_BUYIN
 *@author zhengyunfei
 *@createDate Tue Dec 11 21:53:08 CST 2018
 */


public class TCustBuyinBo implements java.io.Serializable{
 private String pkId;
 private String buyDate;
 private String intDate;
 private String certNo;
 private String custNm;
 private String emplNm;
 private String prodId;
 private String prodNm;
 private String buyAmt;
 private String buyCnt;
 private String leftCnt;
 private String flg;
 private String handFlg;
 private String loadDate;
 private String userId;
 private String contractId;
 private String field;
 private String order;
/**
     * 更改排序字段
     * @return
     */
public String getField() {
        return field;
}
public void setField(String field) {
        this.field = field;
}
public String getOrder() {
        return order;
}
public void setOrder(String order) {
        this.order = order;
}
 private int curNo;
 public int getCurNo() {
     int value=(curNo-1)*curSize;
     return value;
 }
 public void setCurNo(int curNo) {
     this.curNo = curNo;
 }
 private int curSize;
 public int getCurSize() {
     return curSize;
 }
 public void setCurSize(int curSize) {
     this.curSize = curSize;
 }
 public void setPkId(String pkId){
     this.pkId=pkId;
 }
 public String getPkId(){
     return pkId;
 }
 public void setBuyDate(String buyDate){
     this.buyDate=buyDate;
 }
 public String getBuyDate(){
     return buyDate;
 }
 public void setIntDate(String intDate){
     this.intDate=intDate;
 }
 public String getIntDate(){
     return intDate;
 }
 public void setCertNo(String certNo){
     this.certNo=certNo;
 }
 public String getCertNo(){
     return certNo;
 }
 public void setCustNm(String custNm){
     this.custNm=custNm;
 }
 public String getCustNm(){
     return custNm;
 }
 public void setEmplNm(String emplNm){
     this.emplNm=emplNm;
 }
 public String getEmplNm(){
     return emplNm;
 }
 public void setProdId(String prodId){
     this.prodId=prodId;
 }
 public String getProdId(){
     return prodId;
 }
 public void setProdNm(String prodNm){
     this.prodNm=prodNm;
 }
 public String getProdNm(){
     return prodNm;
 }
 public void setBuyAmt(String buyAmt){
     this.buyAmt=buyAmt;
 }
 public String getBuyAmt(){
     return buyAmt;
 }
 public void setBuyCnt(String buyCnt){
     this.buyCnt=buyCnt;
 }
 public String getBuyCnt(){
     return buyCnt;
 }
 public void setLeftCnt(String leftCnt){
     this.leftCnt=leftCnt;
 }
 public String getLeftCnt(){
     return leftCnt;
 }
 public void setFlg(String flg){
     this.flg=flg;
 }
 public String getFlg(){
     return flg;
 }
 public void setHandFlg(String handFlg){
     this.handFlg=handFlg;
 }
 public String getHandFlg(){
     return handFlg;
 }
 public void setLoadDate(String loadDate){
     this.loadDate=loadDate;
 }
 public String getLoadDate(){
     return loadDate;
 }
 public void setUserId(String userId){
     this.userId=userId;
 }
 public String getUserId(){
     return userId;
 }
 public void setContractId(String contractId){
     this.contractId=contractId;
 }
 public String getContractId(){
     return contractId;
 }
 public static TCustBuyinEntity boToEntity(TCustBuyinBo bo){
     TCustBuyinEntity entity=new TCustBuyinEntity();
     entity.setPkId(bo.getPkId());
     entity.setBuyDate(bo.getBuyDate());
     entity.setIntDate(bo.getIntDate());
     entity.setCertNo(bo.getCertNo());
     entity.setCustNm(bo.getCustNm());
     entity.setEmplNm(bo.getEmplNm());
     entity.setProdId(bo.getProdId());
     entity.setProdNm(bo.getProdNm());
     entity.setBuyAmt(bo.getBuyAmt());
     entity.setBuyCnt(bo.getBuyCnt());
     entity.setLeftCnt(bo.getLeftCnt());
     entity.setFlg(bo.getFlg());
     entity.setHandFlg(bo.getHandFlg());
     entity.setLoadDate(bo.getLoadDate());
     entity.setUserId(bo.getUserId());
     entity.setContractId(bo.getContractId());
     return entity;
 }
 public static TCustBuyinBo entityToBo(TCustBuyinEntity bo){
     TCustBuyinBo entity=new TCustBuyinBo();
     entity.setPkId(bo.getPkId());
     entity.setBuyDate(bo.getBuyDate());
     entity.setIntDate(bo.getIntDate());
     entity.setCertNo(bo.getCertNo());
     entity.setCustNm(bo.getCustNm());
     entity.setEmplNm(bo.getEmplNm());
     entity.setProdId(bo.getProdId());
     entity.setProdNm(bo.getProdNm());
     entity.setBuyAmt(bo.getBuyAmt());
     entity.setBuyCnt(bo.getBuyCnt());
     entity.setLeftCnt(bo.getLeftCnt());
     entity.setFlg(bo.getFlg());
     entity.setHandFlg(bo.getHandFlg());
     entity.setLoadDate(bo.getLoadDate());
     entity.setUserId(bo.getUserId());
     entity.setContractId(bo.getContractId());
     return entity;
 }
public static FundFeneSureBook getFeneBook(TCustBuyinBo bo){
     FundFeneSureBook book=new FundFeneSureBook();
     book.setUserName(bo.getCustNm());//客户名称
     book.setFeneDengJiDate(bo.getIntDate().substring(0,10));//份额登记日期
     book.setRgBigMoney(bo.getBuyAmt());//申购金额大写
     book.setRgSmallMoney(bo.getBuyAmt());//申购金额小写
     book.setRgMoney(bo.getBuyAmt());//申购金额
     book.setRgFene(bo.getBuyCnt());
     book.setFen("0");//认购费用，暂定0元
     book.setHtNo(bo.getContractId());
     book.setSignDate(bo.getLoadDate().substring(0,10));//底部盖章日期
     book.setPkId(bo.getPkId());
     book.setFileName(bo.getProdNm());
     book.setCyType(bo.getFlg());
     return book;
 }
}

